package day06;

public class Homework3 {
    public static int getNum(){
        return 8;
    }
    public static int plus(int num1,int num2){
        int num=num1+num2;
        return num;
    }
    public static int[] testArray(int len,int max){
        int[] arr=new int[len];
        for(int i=0;i<len;i++){
            arr[i]=(int)(Math.random()*(max+1));
        }
        return arr;
    }
    public static void main(String[] args) {
        System.out.println(getNum());
        int sum=plus(5,8);
        System.out.println(sum);
        int[] a=testArray(5,10);
        for (int i=0;i<a.length;i++){
            System.out.print(a[i]+"\t");
        }

        System.out.println(" ");
        int[] b=testArray(10,100);
        for(int i=0;i<b.length;i++){
            System.out.print(b[i]+"\t");
        }

    }
}
